﻿
@model Mvc4TwitterBootstrap.Models.PersonModel

@{
    ViewBag.Title = "Create";
}

<div class="span12">
	<h2>Create - PersonModel</h2>
	<hr/>
	<div class="well">Kurzer Beschreibungstext für das aktuelle Formular</div>
</div>
<div class="span12">
	@using (Html.BeginForm("Create", "YourControllerName", FormMethod.Post, new { @class = "form-horizontal" })) {
		<fieldset>
		@Html.MyValidationSummary()

				<div class="control-group">
					@Html.LabelFor(model => model.Vorname, new { @class = "control-label" })
	      
			<div class="controls">
					@Html.EditorFor(model => model.Vorname)
					@Html.ValidationMessageFor(model => model.Vorname)
			</div>
		 </div>
				<div class="control-group">
					@Html.LabelFor(model => model.Nachname, new { @class = "control-label" })
	      
			<div class="controls">
					@Html.EditorFor(model => model.Nachname)
					@Html.ValidationMessageFor(model => model.Nachname)
			</div>
		 </div>
				<div class="control-group">
					@Html.LabelFor(model => model.Ort, new { @class = "control-label" })
	      
			<div class="controls">
					@Html.EditorFor(model => model.Ort)
					@Html.ValidationMessageFor(model => model.Ort)
			</div>
		 </div>
				<div class="form-actions">
				<input class="btn btn-primary" type="submit" value="Create" />
			</div>
		</fieldset>
	}
</div>

<div class="span12">
	<div class="well">
		@Html.ActionLink("Zurück zur Auflistung", "List", null, new {@class="btn btn-small", data_icon="icon-arrow-left"})
	</div>
</div>

@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}
